package com.liuhuxiang.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 订单的启动类
 *
 * @author liuhuxiang
 * @version: OrderApplication.java, 2023年02月27日 下午12:27 liuhuxiang  Exp $
 */
//让它作为Springboot启动类
@SpringBootApplication

//启动Naco客户端，可以加，也可以不加，Nacos高版本默认会启动的
//@EnableDiscoveryClient


//加上启动Feign的注解
@EnableFeignClients
public class OrderApplication {
    public static void main(String[] args) {

        //把类 和 参数args都传进去
        SpringApplication.run(OrderApplication.class, args);
    }


}